import request from "@/utils/request"
// 单位管理
export function queryAllDeviceByProjectCode(data) {
  return request({
    url: "/lDevice/queryPageDevice",
    method: "get",
    params: data
  })
}
export function queryParametersPageByDevice(data) {
  return request({
    url: "/lDevice/queryParametersPageByDevice",
    method: "get",
    params: data
  })
}
export function queryPageDeviceConfigMain(data) {
  return request({
    url: "/lDeviceConfigMain/queryPageDeviceConfigMain",
    method: "get",
    params: data
  })
}
export function updateDevice(data) {
  return request({
    url: "/lDevice/updateDevice",
    method: "post",
    data: data
  })
}

export function deactivateConfigMain(data) {
  return request({
    url: "/lDeviceConfigMain/deactivateConfigMain",
    method: "post",
    data: data
  })
}
export function queryDeviceModelParamList(data) {
  return request({
    url: "/deviceSet/queryDeviceModelParamList",
    method: "get",
    params: data
  })
}
